<template>
  <div class="home-banner">
    <!-- 轮播图 -->
    <XtxSlider :data="slidersData"/>
  </div>
</template>

<script>
// 导入轮播图组件
import { useBanner } from '@/hooks/page'
export default {
  name: 'HomeBanner',
  setup () {
    // 调用公共的轮播图组件
    const { slidersData } = useBanner()

    return { slidersData }
  }
}
</script>

<style scoped lang='less'>
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
}
</style>
